<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <script src="http://libs.baidu.com/jquery/2.1.1/jquery.min.js"></script>
    {% block stylesheets %}{% endblock %}
</head>
<body>
{% block body %}
<span onclick="showData('4')">点击</span>
{% endblock %}
{% block javascripts %}
    <script>
        function showData(id){
            $.ajax({
                type:'POST' ,
                url:'/AbsSR/web/app_dev.php/showdata',  //请求的路由名
                data:{
                    id:id
                },                        //携带的参数
                // 发送方式
                success: function(msg){
                    alert(1111);
                }
            });
        }
    </script>
{% endblock %}
</body>
</html>
